package com.atguigu.day11.exer.e2;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/12 11:50
 * @注释
 */
public class Employee {
    private String name;

    public double earning(){
        return 0.0;
    }

    @Override
    public String toString() {
        return "姓名：" + name + ", 实发工资：" + earning();
    }

    public Employee() {
    }

    public Employee(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
